import Vue from 'vue'
import App from './App.vue'
import 'es6-promise/auto'
import Mint from 'mint-ui'
import moment from 'moment'


// import FastClick from 'fastclick'

import router from './router'
import store from './store'
import utils from './util/util'

import 'mint-ui/lib/style.css'
import './assets/style/iconfont/iconfont.css'
import './assets/style/common.scss'
import VueLazyload from 'vue-lazyload'

// import loadingimg  from './assets/image/member_idcard_image1.png';

Vue.use(Mint, {
  lazyload: {
    loading: require('./assets/image/load_img.png')
  }

})
// Vue.use(VueLazyload, {
//     loading: require('./assets/image/logo.png'), // 加载中图片，一定要有，不然会一直重复加载占位图
//     error: require('./assets/image/logo.png')  // 加载失败图片
// })

Vue.prototype.utils = utils

// FastClick.attach(document.body);　　　　　　　　

moment.locale('zh-cn')
Vue.prototype.$moment = moment
Vue.config.productionTip = false

const app = new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')
setTimeout(() => {
  console.log(app)
}, 1000)